//
//  HotelTableVCell.m
//  Travel assistant
//
//  Created by lanou3g on 16/3/2.
//  Copyright © 2016年 旅游助手. All rights reserved.
//

#import "HotelTableVCell.h"

@implementation HotelTableVCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)setHotelModel:(BMKPoiInfo *)hotelModel{
    _hotelModel = hotelModel;
    [self.hotelImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.map.baidu.com/panorama?width=512&height=256&location=%f,%f&fov=180&ak=iHGsgUK7quL7Qi3yhdMk095S",self.hotelModel.pt.longitude,self.hotelModel.pt.latitude]]];
    self.hotelName.text = self.hotelModel.name;
    self.hotelAddress.text = self.hotelModel.address;
    self.hotelTel.text = self.hotelModel.phone;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
